{include file="header.tpl}
<div class="content tags">
    <div class="tags-header"><h2>Tag: {$tag}</h2></div>
    {if $smarty.get.tag}
	<div class="tags-news">
	<h3>Wpisy</h3>
	{if is_array($news)}
	    <div class="tags-block">
	    {section name=z loop=$news}
		{if $smarty.section.z.iteration % 2 == 1} {assign var=col value='1'} {else} {assign var=col value='2'}{/if}
		<div class="entry entry-{$col}">
		    {$news[z].news_title}
		    <div class="tags-data">{$news[z].date_day} {$news[z].date_month} {$news[z].date_year} {$news[z].hour}</div>
		    <div class="morepage">{$news[z].news_text}</div>
		</div>
	    {/section}
	    {if $pagin}
		{$pagin[0]}
	    {/if}
	    </div>
	{else}
		<div class="entry">
		    <div class="empty">{t}Brak wpisów...{/t}</div>
		</div>
	{/if}
	</div>
	<div class="tags-photos">
	<h3>Zdjęcia</h3>
	    {if is_array($photos)}
	    <div class="tags-block">
	    {section name=i loop=$photos}
	    <div>{$photos[i].link}</div>
	    {/section}
	    <div class="clr"></div>
	    </div>
	    {else}
	    <div class="entry">
		<div class="empty">{t}Brak zdjęć...{/t}</div>
	    </div>
	    {/if}
	</div>
    {/if}
</div>
<div class="sidebar">
{include file='right.tpl'}
</div>
<div class="clr"></div>
</div>
{include file='footer.tpl'}
